package com.joysuch.wwyt.attendant.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.joysuch.wwyt.attendant.bean.AttendantRecordProcessBean;
import com.joysuch.wwyt.attendant.bean.vo.AttendantStatisticsAreaVo;
import com.joysuch.wwyt.attendant.bean.vo.AttendantStatisticsUserVo;
import com.joysuch.wwyt.attendant.entity.AttendantRecordProcess;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xsx
 * @version 1.0
 * @date 2023/2/16 17:48
 */
public interface AttendantRecordProcessMapper  extends BaseMapper<AttendantRecordProcess> {

    AttendantRecordProcess getAttendantRecordProcess(@Param("dataSourceId") Long dataSourceId,@Param("processInstanceId")  String processInstanceId);

    List<AttendantRecordProcessBean> selectProcessByPlanId(@Param("planId") Long planId);

    long countByStatus(@Param("status")String status);

    List<AttendantStatisticsUserVo> findStatisticsUserList(@Param("userIds")List<Long> recordUserIds);

    List<AttendantStatisticsAreaVo> findStatisticsAreaList(@Param("areaIds")List<Long> recordAreaIds);
}
